﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="DataSet1" targetNamespace="http://tempuri.org/DataSet1.xsd" xmlns:mstns="http://tempuri.org/DataSet1.xsd" xmlns="http://tempuri.org/DataSet1.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="TESTConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="TESTConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.WindowsFormsApplication1.Properties.Settings.GlobalReference.Default.TESTConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="Table_1TableAdapter" GeneratorDataComponentClassName="Table_1TableAdapter" Name="Table_1" UserDataComponentName="Table_1TableAdapter">
            <MainSource>
              <DbSource ConnectionRef="TESTConnectionString (Settings)" DbObjectName="TEST.dbo.Table_1" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[Table_1] WHERE (([ID_Ngan] = @Original_ID_Ngan) AND ((@IsNull_TenNgan = 1 AND [TenNgan] IS NULL) OR ([TenNgan] = @Original_TenNgan)) AND ((@IsNull_ViTri = 1 AND [ViTri] IS NULL) OR ([ViTri] = @Original_ViTri)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ID_Ngan" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ID_Ngan" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TenNgan" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TenNgan" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_TenNgan" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TenNgan" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ViTri" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ViTri" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ViTri" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ViTri" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[Table_1] ([ID_Ngan], [TenNgan], [ViTri]) VALUES (@ID_Ngan, @TenNgan, @ViTri);
SELECT ID_Ngan, TenNgan, ViTri FROM Table_1 WHERE (ID_Ngan = @ID_Ngan)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ID_Ngan" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ID_Ngan" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TenNgan" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TenNgan" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ViTri" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ViTri" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT ID_Ngan, TenNgan, ViTri FROM dbo.Table_1</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[Table_1] SET [ID_Ngan] = @ID_Ngan, [TenNgan] = @TenNgan, [ViTri] = @ViTri WHERE (([ID_Ngan] = @Original_ID_Ngan) AND ((@IsNull_TenNgan = 1 AND [TenNgan] IS NULL) OR ([TenNgan] = @Original_TenNgan)) AND ((@IsNull_ViTri = 1 AND [ViTri] IS NULL) OR ([ViTri] = @Original_ViTri)));
SELECT ID_Ngan, TenNgan, ViTri FROM Table_1 WHERE (ID_Ngan = @ID_Ngan)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ID_Ngan" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ID_Ngan" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TenNgan" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TenNgan" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ViTri" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ViTri" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ID_Ngan" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ID_Ngan" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TenNgan" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TenNgan" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_TenNgan" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TenNgan" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ViTri" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ViTri" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ViTri" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ViTri" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID_Ngan" DataSetColumn="ID_Ngan" />
              <Mapping SourceColumn="TenNgan" DataSetColumn="TenNgan" />
              <Mapping SourceColumn="ViTri" DataSetColumn="ViTri" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="DataSet1" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DataSet1" msprop:Generator_UserDSName="DataSet1">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Table_1" msprop:Generator_TableClassName="Table_1DataTable" msprop:Generator_TableVarName="tableTable_1" msprop:Generator_TablePropName="Table_1" msprop:Generator_RowDeletingName="Table_1RowDeleting" msprop:Generator_RowChangingName="Table_1RowChanging" msprop:Generator_RowEvHandlerName="Table_1RowChangeEventHandler" msprop:Generator_RowDeletedName="Table_1RowDeleted" msprop:Generator_UserTableName="Table_1" msprop:Generator_RowChangedName="Table_1RowChanged" msprop:Generator_RowEvArgName="Table_1RowChangeEvent" msprop:Generator_RowClassName="Table_1Row">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID_Ngan" msprop:Generator_ColumnVarNameInTable="columnID_Ngan" msprop:Generator_ColumnPropNameInRow="ID_Ngan" msprop:Generator_ColumnPropNameInTable="ID_NganColumn" msprop:Generator_UserColumnName="ID_Ngan">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="10" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TenNgan" msprop:Generator_ColumnVarNameInTable="columnTenNgan" msprop:Generator_ColumnPropNameInRow="TenNgan" msprop:Generator_ColumnPropNameInTable="TenNganColumn" msprop:Generator_UserColumnName="TenNgan" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ViTri" msprop:Generator_ColumnVarNameInTable="columnViTri" msprop:Generator_ColumnPropNameInRow="ViTri" msprop:Generator_ColumnPropNameInTable="ViTriColumn" msprop:Generator_UserColumnName="ViTri" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="300" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Table_1" />
      <xs:field xpath="mstns:ID_Ngan" />
    </xs:unique>
  </xs:element>
</xs:schema>